import request from '@/utils/request'

export function unitList(data) {
  return request({
    url: '/unitlist',
    method: 'post',
    params: data
  })
}

export function unitDetail(data) {
  return request({
    url: '/unitdetail',
    method: 'post',
    params: data
  })
}

export function createUnit(data) {
  return request({
    url: '/unitadd',
    method: 'post',
    data
  })
}

export function updateUnit(data) {
  return request({
    url: '/unitupdate',
    method: 'post',
    data
  })
}
